package com.my.zuji.controller.form;

import org.hibernate.validator.constraints.Email;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

public class RegisteForm {
	@Length(min=2,max=12,message="* 用户名长度必须在2-12之间！")
	private String userName;
	@Length(min=6,max=20,message="* 密码长度必须在6-20之间！")
	private String password;
	@NotBlank(message = "* 重复密码不能为空！")
	private String rePassword;
	@NotBlank(message = "* 邮箱不能为空！")
	@Email(message="* 邮箱格式不正确！")
	private String email;
	
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getRePassword() {
		return rePassword;
	}
	public void setRePassword(String rePassword) {
		this.rePassword = rePassword;
	}
	
}
